<template>
  <div>
    我是测试文件

    <el-button type="success" @click="login">点击登录</el-button>
  </div>
</template>

<script lang="ts" setup>
import { reqLogin } from '@/api/user'
import { ref } from 'vue'
const user = ref({
  usename: 'admin',
  password: '111111'
})
const login = async () => {
  const res = await reqLogin(user.value.usename, user.value.password)
  console.log(res)
}
</script>

<script lang="ts">
export default {
  name: 'VTest'
}
</script>

<style lang="scss" scoped></style>
